<?php

namespace Blog\App\Action;

use Hx\Response;
use Hx\View;

class Error {

    public function show($code = 404) {
        Response::setStatus($code);
        return View::display('error.html', 2, array(
            'error' => Response::getStatusText($code),
            'title' => '页面有错误'
        ));
    }
}